{"ast":null,"code":"import { genActiveStyle, genBasicInputStyle, genDisabledStyle, genPlaceholderStyle, genStatusStyle, initInputToken } from '../../input/style';\nimport { genComponentStyleHook } from '../../theme/internal';\nimport { resetComponent, textEllipsis } from '../../style';\nconst genMentionsStyle = token => {\n  const {\n    componentCls,\n    colorTextDisabled,\n    controlItemBgHover,\n    controlPaddingHorizontal,\n    colorText,\n    motionDurationSlow,\n    lineHeight,\n    controlHeight,\n    inputPaddingHorizontal,\n    inputPaddingVertical,\n    fontSize,\n    colorBgElevated,\n    borderRadiusLG,\n    boxShadowSecondary\n  } = token;\n  const itemPaddingVertical = Math.round((token.controlHeight - token.fontSize * token.lineHeight) / 2);\n  return {\n    [`${componentCls}`]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, resetComponent(token)), genBasicInputStyle(token)), {\n      position: 'relative',\n      display: 'inline-block',\n      height: 'auto',\n      padding: 0,\n      overflow: 'hidden',\n      lineHeight,\n      whiteSpace: 'pre-wrap',\n      verticalAlign: 'bottom'\n    }), genStatusStyle(token)), {\n      '&-disabled': {\n        '> textarea': Object.assign({}, genDisabledStyle(token))\n      },\n      '&-focused': Object.assign({}, genActiveStyle(token)),\n      [`&-affix-wrapper ${componentCls}-suffix`]: {\n        position: 'absolute',\n        top: 0,\n        insetInlineEnd: inputPaddingHorizontal,\n        bottom: 0,\n        zIndex: 1,\n        display: 'inline-flex',\n        alignItems: 'center',\n        margin: 'auto'\n      },\n      // ================= Input Area =================\n      [`> textarea, ${componentCls}-measure`]: {\n        color: colorText,\n        boxSizing: 'border-box',\n        minHeight: controlHeight - 2,\n        margin: 0,\n        padding: `${inputPaddingVertical}px ${inputPaddingHorizontal}px`,\n        overflow: 'inherit',\n        overflowX: 'hidden',\n        overflowY: 'auto',\n        fontWeight: 'inherit',\n        fontSize: 'inherit',\n        fontFamily: 'inherit',\n        fontStyle: 'inherit',\n        fontVariant: 'inherit',\n        fontSizeAdjust: 'inherit',\n        fontStretch: 'inherit',\n        lineHeight: 'inherit',\n        direction: 'inherit',\n        letterSpacing: 'inherit',\n        whiteSpace: 'inherit',\n        textAlign: 'inherit',\n        verticalAlign: 'top',\n        wordWrap: 'break-word',\n        wordBreak: 'inherit',\n        tabSize: 'inherit'\n      },\n      '> textarea': Object.assign({\n        width: '100%',\n        border: 'none',\n        outline: 'none',\n        resize: 'none',\n        backgroundColor: 'inherit'\n      }, genPlaceholderStyle(token.colorTextPlaceholder)),\n      [`${componentCls}-measure`]: {\n        position: 'absolute',\n        top: 0,\n        insetInlineEnd: 0,\n        bottom: 0,\n        insetInlineStart: 0,\n        zIndex: -1,\n        color: 'transparent',\n        pointerEvents: 'none',\n        '> span': {\n          display: 'inline-block',\n          minHeight: '1em'\n        }\n      },\n      // ================== Dropdown ==================\n      '&-dropdown': Object.assign(Object.assign({}, resetComponent(token)), {\n        position: 'absolute',\n        top: -9999,\n        insetInlineStart: -9999,\n        zIndex: token.zIndexPopup,\n        boxSizing: 'border-box',\n        fontSize,\n        fontVariant: 'initial',\n        backgroundColor: colorBgElevated,\n        borderRadius: borderRadiusLG,\n        outline: 'none',\n        boxShadow: boxShadowSecondary,\n        '&-hidden': {\n          display: 'none'\n        },\n        [`${componentCls}-dropdown-menu`]: {\n          maxHeight: token.dropdownHeight,\n          marginBottom: 0,\n          paddingInlineStart: 0,\n          overflow: 'auto',\n          listStyle: 'none',\n          outline: 'none',\n          '&-item': Object.assign(Object.assign({}, textEllipsis), {\n            position: 'relative',\n            display: 'block',\n            minWidth: token.controlItemWidth,\n            padding: `${itemPaddingVertical}px ${controlPaddingHorizontal}px`,\n            color: colorText,\n            fontWeight: 'normal',\n            lineHeight,\n            cursor: 'pointer',\n            transition: `background ${motionDurationSlow} ease`,\n            '&:hover': {\n              backgroundColor: controlItemBgHover\n            },\n            '&:first-child': {\n              borderStartStartRadius: borderRadiusLG,\n              borderStartEndRadius: borderRadiusLG,\n              borderEndStartRadius: 0,\n              borderEndEndRadius: 0\n            },\n            '&:last-child': {\n              borderStartStartRadius: 0,\n              borderStartEndRadius: 0,\n              borderEndStartRadius: borderRadiusLG,\n              borderEndEndRadius: borderRadiusLG\n            },\n            '&-disabled': {\n              color: colorTextDisabled,\n              cursor: 'not-allowed',\n              '&:hover': {\n                color: colorTextDisabled,\n                backgroundColor: controlItemBgHover,\n                cursor: 'not-allowed'\n              }\n            },\n            '&-selected': {\n              color: colorText,\n              fontWeight: token.fontWeightStrong,\n              backgroundColor: controlItemBgHover\n            },\n            '&-active': {\n              backgroundColor: controlItemBgHover\n            }\n          })\n        }\n      })\n    })\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Mentions', token => {\n  const mentionsToken = initInputToken(token);\n  return [genMentionsStyle(mentionsToken)];\n}, token => ({\n  dropdownHeight: 250,\n  controlItemWidth: 100,\n  zIndexPopup: token.zIndexPopupBase + 50\n}));","map":{"version":3,"names":["genActiveStyle","genBasicInputStyle","genDisabledStyle","genPlaceholderStyle","genStatusStyle","initInputToken","genComponentStyleHook","resetComponent","textEllipsis","genMentionsStyle","token","componentCls","colorTextDisabled","controlItemBgHover","controlPaddingHorizontal","colorText","motionDurationSlow","lineHeight","controlHeight","inputPaddingHorizontal","inputPaddingVertical","fontSize","colorBgElevated","borderRadiusLG","boxShadowSecondary","itemPaddingVertical","Math","round","Object","assign","position","display","height","padding","overflow","whiteSpace","verticalAlign","top","insetInlineEnd","bottom","zIndex","alignItems","margin","color","boxSizing","minHeight","overflowX","overflowY","fontWeight","fontFamily","fontStyle","fontVariant","fontSizeAdjust","fontStretch","direction","letterSpacing","textAlign","wordWrap","wordBreak","tabSize","width","border","outline","resize","backgroundColor","colorTextPlaceholder","insetInlineStart","pointerEvents","zIndexPopup","borderRadius","boxShadow","maxHeight","dropdownHeight","marginBottom","paddingInlineStart","listStyle","minWidth","controlItemWidth","cursor","transition","borderStartStartRadius","borderStartEndRadius","borderEndStartRadius","borderEndEndRadius","fontWeightStrong","mentionsToken","zIndexPopupBase"],"sources":["/data/messenger.client/node_modules/antd/es/mentions/style/index.js"],"sourcesContent":["import { genActiveStyle, genBasicInputStyle, genDisabledStyle, genPlaceholderStyle, genStatusStyle, initInputToken } from '../../input/style';\nimport { genComponentStyleHook } from '../../theme/internal';\nimport { resetComponent, textEllipsis } from '../../style';\nconst genMentionsStyle = token => {\n  const {\n    componentCls,\n    colorTextDisabled,\n    controlItemBgHover,\n    controlPaddingHorizontal,\n    colorText,\n    motionDurationSlow,\n    lineHeight,\n    controlHeight,\n    inputPaddingHorizontal,\n    inputPaddingVertical,\n    fontSize,\n    colorBgElevated,\n    borderRadiusLG,\n    boxShadowSecondary\n  } = token;\n  const itemPaddingVertical = Math.round((token.controlHeight - token.fontSize * token.lineHeight) / 2);\n  return {\n    [`${componentCls}`]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, resetComponent(token)), genBasicInputStyle(token)), {\n      position: 'relative',\n      display: 'inline-block',\n      height: 'auto',\n      padding: 0,\n      overflow: 'hidden',\n      lineHeight,\n      whiteSpace: 'pre-wrap',\n      verticalAlign: 'bottom'\n    }), genStatusStyle(token)), {\n      '&-disabled': {\n        '> textarea': Object.assign({}, genDisabledStyle(token))\n      },\n      '&-focused': Object.assign({}, genActiveStyle(token)),\n      [`&-affix-wrapper ${componentCls}-suffix`]: {\n        position: 'absolute',\n        top: 0,\n        insetInlineEnd: inputPaddingHorizontal,\n        bottom: 0,\n        zIndex: 1,\n        display: 'inline-flex',\n        alignItems: 'center',\n        margin: 'auto'\n      },\n      // ================= Input Area =================\n      [`> textarea, ${componentCls}-measure`]: {\n        color: colorText,\n        boxSizing: 'border-box',\n        minHeight: controlHeight - 2,\n        margin: 0,\n        padding: `${inputPaddingVertical}px ${inputPaddingHorizontal}px`,\n        overflow: 'inherit',\n        overflowX: 'hidden',\n        overflowY: 'auto',\n        fontWeight: 'inherit',\n        fontSize: 'inherit',\n        fontFamily: 'inherit',\n        fontStyle: 'inherit',\n        fontVariant: 'inherit',\n        fontSizeAdjust: 'inherit',\n        fontStretch: 'inherit',\n        lineHeight: 'inherit',\n        direction: 'inherit',\n        letterSpacing: 'inherit',\n        whiteSpace: 'inherit',\n        textAlign: 'inherit',\n        verticalAlign: 'top',\n        wordWrap: 'break-word',\n        wordBreak: 'inherit',\n        tabSize: 'inherit'\n      },\n      '> textarea': Object.assign({\n        width: '100%',\n        border: 'none',\n        outline: 'none',\n        resize: 'none',\n        backgroundColor: 'inherit'\n      }, genPlaceholderStyle(token.colorTextPlaceholder)),\n      [`${componentCls}-measure`]: {\n        position: 'absolute',\n        top: 0,\n        insetInlineEnd: 0,\n        bottom: 0,\n        insetInlineStart: 0,\n        zIndex: -1,\n        color: 'transparent',\n        pointerEvents: 'none',\n        '> span': {\n          display: 'inline-block',\n          minHeight: '1em'\n        }\n      },\n      // ================== Dropdown ==================\n      '&-dropdown': Object.assign(Object.assign({}, resetComponent(token)), {\n        position: 'absolute',\n        top: -9999,\n        insetInlineStart: -9999,\n        zIndex: token.zIndexPopup,\n        boxSizing: 'border-box',\n        fontSize,\n        fontVariant: 'initial',\n        backgroundColor: colorBgElevated,\n        borderRadius: borderRadiusLG,\n        outline: 'none',\n        boxShadow: boxShadowSecondary,\n        '&-hidden': {\n          display: 'none'\n        },\n        [`${componentCls}-dropdown-menu`]: {\n          maxHeight: token.dropdownHeight,\n          marginBottom: 0,\n          paddingInlineStart: 0,\n          overflow: 'auto',\n          listStyle: 'none',\n          outline: 'none',\n          '&-item': Object.assign(Object.assign({}, textEllipsis), {\n            position: 'relative',\n            display: 'block',\n            minWidth: token.controlItemWidth,\n            padding: `${itemPaddingVertical}px ${controlPaddingHorizontal}px`,\n            color: colorText,\n            fontWeight: 'normal',\n            lineHeight,\n            cursor: 'pointer',\n            transition: `background ${motionDurationSlow} ease`,\n            '&:hover': {\n              backgroundColor: controlItemBgHover\n            },\n            '&:first-child': {\n              borderStartStartRadius: borderRadiusLG,\n              borderStartEndRadius: borderRadiusLG,\n              borderEndStartRadius: 0,\n              borderEndEndRadius: 0\n            },\n            '&:last-child': {\n              borderStartStartRadius: 0,\n              borderStartEndRadius: 0,\n              borderEndStartRadius: borderRadiusLG,\n              borderEndEndRadius: borderRadiusLG\n            },\n            '&-disabled': {\n              color: colorTextDisabled,\n              cursor: 'not-allowed',\n              '&:hover': {\n                color: colorTextDisabled,\n                backgroundColor: controlItemBgHover,\n                cursor: 'not-allowed'\n              }\n            },\n            '&-selected': {\n              color: colorText,\n              fontWeight: token.fontWeightStrong,\n              backgroundColor: controlItemBgHover\n            },\n            '&-active': {\n              backgroundColor: controlItemBgHover\n            }\n          })\n        }\n      })\n    })\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Mentions', token => {\n  const mentionsToken = initInputToken(token);\n  return [genMentionsStyle(mentionsToken)];\n}, token => ({\n  dropdownHeight: 250,\n  controlItemWidth: 100,\n  zIndexPopup: token.zIndexPopupBase + 50\n}));"],"mappings":"AAAA,SAASA,cAAc,EAAEC,kBAAkB,EAAEC,gBAAgB,EAAEC,mBAAmB,EAAEC,cAAc,EAAEC,cAAc,QAAQ,mBAAmB;AAC7I,SAASC,qBAAqB,QAAQ,sBAAsB;AAC5D,SAASC,cAAc,EAAEC,YAAY,QAAQ,aAAa;AAC1D,MAAMC,gBAAgB,GAAGC,KAAK,IAAI;EAChC,MAAM;IACJC,YAAY;IACZC,iBAAiB;IACjBC,kBAAkB;IAClBC,wBAAwB;IACxBC,SAAS;IACTC,kBAAkB;IAClBC,UAAU;IACVC,aAAa;IACbC,sBAAsB;IACtBC,oBAAoB;IACpBC,QAAQ;IACRC,eAAe;IACfC,cAAc;IACdC;EACF,CAAC,GAAGd,KAAK;EACT,MAAMe,mBAAmB,GAAGC,IAAI,CAACC,KAAK,CAAC,CAACjB,KAAK,CAACQ,aAAa,GAAGR,KAAK,CAACW,QAAQ,GAAGX,KAAK,CAACO,UAAU,IAAI,CAAC,CAAC;EACrG,OAAO;IACL,CAAE,GAAEN,YAAa,EAAC,GAAGiB,MAAM,CAACC,MAAM,CAACD,MAAM,CAACC,MAAM,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